# 解锁keychain，以便可以正常的签名应用，
#PASSWORD="YourPassword"
#security unlock-keychain -p $PASSWORD ~/Library/Keychains/login.keychain
# 获取设备的UDID，用到了之前的 libimobiledevice
UDID=$(idevice_id -l | head -n1)
# 真机运行测试,先进入至WebDriverAgent.xcodeproj的文件目录下
cd /Users/iwm/Documents/instal/WebDriverAgent-master/
xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=$UDID" test
#xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "id=5d9ee406534f4445d0ce03744916600fa1e71afa" test
# 模拟器运行测试
#xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination "platform=iOS Simulator,name=iPhone X" test